package com.qaml.mes.device.controller;


import com.earth.page.PageResponse;
import com.qaml.mes.device.api.EqpRepairService;
import com.qaml.mes.device.dto.eqp.EqpRepairDTO;
import com.qaml.mes.device.vo.eqp.EqpRepairVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 设备维修表 前端控制器
 * </p>
 *
 * @author leikai
 * @since 2024-03-04
 */
@Api(tags = "设备维修")
@RestController
@RequestMapping("/eqpRepair")
public class EqpRepairController {

    @Resource
    private EqpRepairService eqpRepairService;

    /**
     * 设备维修列表  app端
     *
     * @param eqpRepairDTO
     * @return
     */
    @PostMapping("/repair/list")
    @ApiOperation(value = "app设备维修单 -列表查询(App)", notes = "app设备维修单 -列表查询")
    public PageResponse<EqpRepairVO> repairList(@RequestBody EqpRepairDTO eqpRepairDTO) {
        return eqpRepairService.repairList(eqpRepairDTO);
    }
}
